package com.atguigu04._throw.ex3;

public class t {
    public static void main(String[] args) {
        try {
            Person p1=new Person("tom",-10);
        }catch (NoLifeValueException e){
            System.out.println(e.getMessage());
        }

        //System.out.println(p1.toString());

        Person p2=new Person();
        p2.setLifeValue(-10);
        p2.setName("tim");
    }
}
